package com.dlry.util;

import java.util.Random;

public class StringUtil {
	// private static String str = "QWERTYUPASDFGHJKLZXCVBNM23456789";

	private StringUtil() {
	}

	public static String getRandomString(int length) {
		String str = "QWERTYUPASDFGHJKLZXCVBNM23456789";
		Random random = new Random();
		StringBuffer buffer = new StringBuffer();
		for (int i = 0; i < length; i++) {
			int index = random.nextInt(str.length());
			buffer.append(str.charAt(index));
		}
		return buffer.toString();
	}
}
